package com.foryou.system.modules.wx.service.impl;

import com.foryou.system.modules.wx.dao.UserDao;
import com.foryou.system.modules.wx.entity.UserEntity;
import com.foryou.system.modules.wx.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by Lee.
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public List<UserEntity> queryList(Map<String, Object> map) {
        return userDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return userDao.queryTotal(map);
    }

    @Override
    public UserEntity getUserInfo(Long id) {
        return userDao.getUserInfo(id);
    }

    @Override
    public int update(Map<String, Object> map) {
        return userDao.update(map);
    }
}
